const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)

const plugins = []
if (IS_PROD) {
  plugins.push('transform-remove-console')
}
const envPlugins = []
if (!IS_PROD) {
  envPlugins.push("dynamic-import-node")
}

module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
	env: {
		development: {
			plugins: envPlugins
		}
	},
  sourceType: 'unambiguous',
  plugins
}
